<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('makeUpTest')} > ${i18n.getMessage('list')}">
	<a href="#" onclick="cc('study/showAddMakeUpTest.sgt?offeringId=${(offering.id)!}')">${i18n.getMessage('add')}</a>
	- <a href="#" onclick="cc('study/showTestResult.sgt?offeringId=${offering.id}')">${i18n.getMessage('result')}</a>
	- <a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${(offering.id)!}')">${i18n.getMessage('class')}</a>
</@showTitle>

<br/>

<@display.table id="listTable" name="offering.makeUpTests" sort="list" defaultsort="1" pagesize="20">
	<@display.column title="${i18n.getMessage('student')}" property="offeringMember.receipt.student.fullName" sortable="true" style="width:150px"></@display.column>
	<@display.column title="${i18n.getMessage('testDate')}" property="makeUpTest.makeUpDate" format="{0, date, ${i18n.getMessage('format.date')}}" sortable="true" style="width:80px;text-align:center"></@display.column>
	<@display.column title="${i18n.getMessage('listening')}" sortable="true" style="width:50px;text-align:center">${(listTable.listening)!}</@display.column>
	<#if ge>
		<@display.column title="${i18n.getMessage('pronun')}" sortable="true" style="width:50px;text-align:center">${(listTable.pronunciation)!}</@display.column>
	</#if>
	<@display.column title="${i18n.getMessage('speaking')}" sortable="true" style="width:50px;text-align:center">${(listTable.speaking)!}</@display.column>
	<@display.column title="${i18n.getMessage('grammar')}" sortable="true" style="width:50px;text-align:center">${(listTable.grammar)!}</@display.column>
	<@display.column title="${i18n.getMessage('reading')}" sortable="true" style="width:50px;text-align:center">${(listTable.reading)!}</@display.column>
	<@display.column title="${i18n.getMessage('writing')}" sortable="true" style="width:50px;text-align:center">${(listTable.writing)!}</@display.column>
	<@display.column title="${i18n.getMessage('receiptNo')}" style="text-align:center">${(listTable.receiptNo)!}</@display.column>
	<@display.column title="${i18n.getMessage('edit')}" style="text-align:center"><img src="images/edit.gif" onclick="cc('study/showInfoMakeUpTest.sgt?finalTestId=${listTable.id}&offeringId=${offering.id}')" style="cursor:pointer"/></@display.column>
	<@display.column title="${i18n.getMessage('report')}" style="text-align:center"><img src="images/report.gif" onclick="" style="cursor:pointer"/></@display.column>
	<@display.column title="${i18n.getMessage('delete')}" style="text-align:center"><img src="images/delete.gif" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('study/deleteMakeUpTest.sgt?finalTestId=${listTable.id}&offeringId=${offering.id}'); }" style="cursor:pointer"/></@display.column>
</@display.table>

<br/><br/>